import request from "/@/utils/request"
// 获取表格数据
export function fetchList(query) {
  return request({
    url: '/om/ominspection/page',
    method: 'get',
    params: query
  })
}
// 新增
export function addObj(obj) {
  return request({
    url: '/om/ominspection',
    method: 'post',
    data: obj
  })
}
// 删除
export function delObj(id) {
  return request({
    url: '/om/ominspection/' + id,
    method: 'delete'
  })
}
// 修改
export function putObj(obj) {
  return request({
    url: '/om/ominspection',
    method: 'put',
    data: obj
  })
}
//批量删除
export function delAllObj(obj) {
  return request({
    url: '/om/ominspection/deleteIds',
    method: 'delete',
    data: obj
  })
}
